//
//  Encryption.h
//  RSA
//
//  Created by 李燚 on 15/8/18.
//  Copyright (c) 2015年 Clapp Inc. All rights reserved.
//

#import <Foundation/Foundation.h>



@class NSString;



@interface NSData (Encryption)



- (NSData *)AES256EncryptWithKey:(NSString *)key;   //加密

- (NSData *)AES256DecryptWithKey:(NSString *)key;   //解密

- (NSString *)base64StringFromData: (NSData *)data length: (long)length ;	//追加64编码

+ (NSData *)dataFromBase64String:(NSString *)aString; // 64位反编码

@end
